package top.huhuiyu.springboot2.service;

import top.huhuiyu.springboot2.entity.*;

import java.util.List;

public interface TbNewsService {

  BaseResult delete(Integer id);

  BaseResult update(TbNews tbNews);

  BaseDataResult<TbNews> queryByKey(Integer id);

  BaseDataResult<PageResult<List<TbNews>>> query(NewsQuery query, PageBean page);

  BaseResult add(TbNews tbNews);
}
